package ink.ykb.demo.permission.entity;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

import org.beetl.sql.core.annotatoin.Table;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
/* 
* 经销商层级表
* gen by beetlsql 2019-09-23
*/
@Table(name="test.dealer_department")
public class DealerDepartment  implements Serializable {
	
	private static final long serialVersionUID = 1L;
	// alias
	public static final String ALIAS_id = "id";
	public static final String ALIAS_name = "name";
	public static final String ALIAS_parent_id = "parent_id";
	public static final String ALIAS_create_time = "create_time";
	
	/*
	主键
	*/
	@JsonSerialize(using=ToStringSerializer.class)
	private Long id ;
	/*
	名称
	*/
	private String name ;
	/*
	父级主键
	*/
	private Long parentId ;
	/*
	创建时间
	*/
	private Date createTime ;
	
	/**
	 * 子集
	 */
	private List<DealerDepartment> childs;
	
	
	public List<DealerDepartment> getChilds() {
		return childs;
	}

	public void setChilds(List<DealerDepartment> childs) {
		this.childs = childs;
	}

	public DealerDepartment() {
	}
	
	/**
	* 主键
	*@return 
	*/
	public Long getId(){
		return  id;
	}
	/**
	* 主键
	*@param  id
	*/
	public void setId(Long id ){
		this.id = id;
	}
	
	/**
	* 名称
	*@return 
	*/
	public String getName(){
		return  name;
	}
	/**
	* 名称
	*@param  name
	*/
	public void setName(String name ){
		this.name = name;
	}
	
	/**
	* 父级主键
	*@return 
	*/
	public Long getParentId(){
		return  parentId;
	}
	/**
	* 父级主键
	*@param  parentId
	*/
	public void setParentId(Long parentId ){
		this.parentId = parentId;
	}
	
	/**
	* 创建时间
	*@return 
	*/
	public Date getCreateTime(){
		return  createTime;
	}
	/**
	* 创建时间
	*@param  createTime
	*/
	public void setCreateTime(Date createTime ){
		this.createTime = createTime;
	}
	

}
